﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Sbook.Data;

namespace Sbook.Business
{
    public class DeliveryDetailService
    {
        private static DeliveryDetailController db = new DeliveryDetailController();
        public static List<Data.DeliveryDetailInfo> DeliveryDetail_GetByAll()
        {
            return db.DeliveryDetail_GetByAll();
        }

        public static List<Data.DeliveryDetailInfo> DeliveryDetail_GetByTop(string top, string where, string order)
        {
            return db.DeliveyDetail_GetByTop(top, where, order);
        }

        public static bool DeliveryDetail_Insert(Data.DeliveryDetailInfo obj)
        {
            return db.DeliveryDetail_Insert(obj);
        }
        public static bool DeliveryDetail_Update(Data.DeliveryDetailInfo obj)
        {
            return db.DeliveryDetail_Update(obj);
        }

        public static bool DeliveryDetail_Delete(string DeliveryId, string ProductId)
        {
            return db.DeliveryDetail_Delete(DeliveryId, ProductId);
        }
    }
}